<script setup>
import { ref, reactive } from 'vue'

const count = ref(10)
const num = reactive({
  value: 100
})

const addCount = () => {
  count.value++
  // console.log(count)
}
</script>

<template>
  <div>
    <h2>{{ count }}</h2>

    <h2>{{ num.value }}</h2>

    <button @click="addCount">点击添加</button>
  </div>
</template>

<style lang="less"></style>
